home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10022 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: sundog.tiac.net!usenet
  2. From: mao@tiac.net (Mark A. Odell)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: #define "creating" strings ?
  5. Date: Thu, 14 Mar 1996 23:14:31 GMT
  6. Organization: None!
  7. Message-ID: <3148a7e9.151398579@news>
  8. References: <Do9tsI.H2t@undergrad.math.uwaterloo.ca> <4ia60f$dhq@ringer.cs.utsa.edu>
  9. Reply-To: mao@tiac.net
  10. NNTP-Posting-Host: cygnus.tiac.net
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. On 14 Mar 1996 22:18:55 GMT, nreitzel@lonestar.jpl.utsa.edu (Norman L. Reitzel
  14. ) wrote:
  15.  
  16. >In article <Do9tsI.H2t@undergrad.math.uwaterloo.ca> crpalmer@solo.uwaterloo.ca (Chris Palmer) writes:
  17. >>I have a problem that I would like to solve using a "feature" of the C
  18. >>preprocessor that until now I've never seen or heard of.  A book that we have
  19. >>here gives the example:
  20.  
  21. [snip]
  22.  
  23. >IMHO, this is an error prone practice, in a language that is ripe with 
  24. >things that can be error prone.  Why would one want to substitute the
  25. >expression MAKESTRING(nuts) for the equivalent and obvious syntax, "nuts" ?
  26.  
  27. I agree. IMHO, macros have limited _safe_ use. Try to have the compiler in-line
  28. if speed is of great importance. Function calls if size is more important.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. - Mark
  36. +---------------------------------------------------+
  37. |                                                   |
  38. | Mark A. Odell                        mao@tiac.net |
  39. |                                                   |
  40. +---------------------------------------------------+
  41.